package com.project.entity;

import com.project.dao.FileDao;
import com.project.util.DateUtil;

public class Files {

	private String id;
	private String name;
	private String filename;
	private long filesize;
	private String createtime;
	private String userid;
	private User user;
	private Filetype filetype;
	private String filetypeid;
    private String size;
    public String getTime() {
		return DateUtil.getNiceDate(this.createtime);
	}
	public String getSize() {
		return FileDao.getNiceSize(this.filesize);
	}
	public void setSize(String size) {
		this.size = size;
	}
	public User getUser() {
		return user;
	}
	public void setUser(User user) {
		this.user = user;
	}
	public Filetype getFiletype() {
		return filetype;
	}
	public void setFiletype(Filetype filetype) {
		this.filetype = filetype;
	}
	public String getId() {
		return id;
	}
	public void setId(String id) {
		this.id = id;
	}
	public String getUserid() {
		return userid;
	}
	public void setUserid(String userid) {
		this.userid = userid;
	}
	public String getFiletypeid() {
		return filetypeid;
	}
	public void setFiletypeid(String filetypeid) {
		this.filetypeid = filetypeid;
	}
	public String getName() {
		return name;
	}
	public void setName(String name) {
		this.name = name;
	}
	public String getFilename() {
		return filename;
	}
	public void setFilename(String filename) {
		this.filename = filename;
	}
	public long getFilesize() {
		return filesize;
	}
	public void setFilesize(long filesize) {
		this.filesize = filesize;
	}
	public String getCreatetime() {
		return createtime;
	}
	public void setCreatetime(String createtime) {
		this.createtime = createtime;
	}
	
}
